package com.ruoyi.huoyun.person.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.huoyun.person.mapper.DriverPersonInfoMapper;
import com.ruoyi.huoyun.person.domain.DriverPersonInfo;
import com.ruoyi.huoyun.person.service.IDriverPersonInfoService;

/**
 * 车主个人信息Service业务层处理
 * 
 * @author mj
 * @date 2021-11-28
 */
@Service
public class DriverPersonInfoServiceImpl implements IDriverPersonInfoService 
{
    @Autowired
    private DriverPersonInfoMapper driverPersonInfoMapper;

    /**
     * 查询车主个人信息
     * 
     * @param id 车主个人信息主键
     * @return 车主个人信息
     */
    @Override
    public DriverPersonInfo selectDriverPersonInfoById(Integer id)
    {
        return driverPersonInfoMapper.selectDriverPersonInfoById(id);
    }

    /**
     * 查询车主个人信息列表
     * 
     * @param driverPersonInfo 车主个人信息
     * @return 车主个人信息
     */
    @Override
    public List<DriverPersonInfo> selectDriverPersonInfoList(DriverPersonInfo driverPersonInfo)
    {
        return driverPersonInfoMapper.selectDriverPersonInfoList(driverPersonInfo);
    }

    /**
     * 新增车主个人信息
     * 
     * @param driverPersonInfo 车主个人信息
     * @return 结果
     */
    @Override
    public int insertDriverPersonInfo(DriverPersonInfo driverPersonInfo)
    {
        return driverPersonInfoMapper.insertDriverPersonInfo(driverPersonInfo);
    }

    /**
     * 修改车主个人信息
     * 
     * @param driverPersonInfo 车主个人信息
     * @return 结果
     */
    @Override
    public int updateDriverPersonInfo(DriverPersonInfo driverPersonInfo)
    {
        return driverPersonInfoMapper.updateDriverPersonInfo(driverPersonInfo);
    }

    /**
     * 批量删除车主个人信息
     * 
     * @param ids 需要删除的车主个人信息主键
     * @return 结果
     */
    @Override
    public int deleteDriverPersonInfoByIds(Integer[] ids)
    {
        return driverPersonInfoMapper.deleteDriverPersonInfoByIds(ids);
    }

    /**
     * 删除车主个人信息信息
     * 
     * @param id 车主个人信息主键
     * @return 结果
     */
    @Override
    public int deleteDriverPersonInfoById(Integer id)
    {
        return driverPersonInfoMapper.deleteDriverPersonInfoById(id);
    }
}
